package com.wan37.logic.listener.handler;

import com.wan37.logic.global.reference.SpringContextHolder;
import com.wan37.logic.listener.annotation.EventHandler;
import com.wan37.logic.listener.annotation.Listener;
import com.wan37.logic.listener.event.EventType;
import com.wan37.logic.listener.event.user.UserLoginEvent;
import com.wan37.logic.service.SceneService;
import com.wan37.logic.service.cache.SceneServiceCache;
import com.wan37.logic.service.cache.UserServiceCache;

/**
 * @author : luoyong
 * @date : 2020-06-29 11:47
 **/
@Listener
public class UserListenerHandler {
    private SceneServiceCache sceneServiceCache;
    private UserServiceCache userServiceCache;

    public UserListenerHandler() {
        this.sceneServiceCache = SpringContextHolder.getBean("sceneServiceCache");
        this.userServiceCache = SpringContextHolder.getBean("userServiceCache");
    }

    @EventHandler(value = EventType.LOGIN)
    public void login(UserLoginEvent userLoginEvent) {

    }
}
